const { util } = require("utils");
const { GXH_ReplyCDATA } = require("../gzhConst");
function xmlWithCDATA(obj) {
    if (util.nilValue(obj) || typeof obj !== "object") {
        return {};
    }
    let keys = Object.keys(obj);
    let result = {};
    keys.forEach((e) => {
        result[e] = {
            [GXH_ReplyCDATA]: obj[e],
        };
    });
    return result;
}

module.exports = {
    xmlWithCDATA,
};
